<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>window</title>
</head>

<body>
    <script>
        function openWin() {
            // window.open 打开一个新窗口
            // window.open("practice2.html");
            window.open("http://www.baidu.com");
        }
    </script>
    <button onclick="openWin()">打开新窗口</button>
</body>

</html>